package spec.ocl_mcg;

import graph.mcg.CGNode;
import graph.mcg.ConstraintNode;

import org.eclipse.ocl.ecore.StringLiteralExp;


public class StringLiteralExpNode extends TreeNode implements LeafNode {
	private String value;
	
	public StringLiteralExpNode(){}
	
	public StringLiteralExpNode(StringLiteralExp exp){
		value = exp.getStringSymbol();
		expresult = "'" + exp.getStringSymbol() + "'";
	}
	
	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public CGNode toCG() {
		// TODO Auto-generated method stub
		ConstraintNode cfgnode = new ConstraintNode(this);
		cfgnode.setConstraint(value);
		cfgnode.setNextnode(null);
		return cfgnode;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
